class CreateProductProperties < ActiveRecord::Migration
  def change
    create_table :product_properties, :force => true do |t|
      t.references :property_group, :null => false
      t.string :presentation, :limit => 35, :null => true
      t.integer :position, :limit => 4, :null => false
    end

    add_index :product_properties, :property_group_id
  end
end
